import request from '@/utils/request'

// 查询纪录片列表
export function listDocumentary(query) {
  return request({
    url: '/type/documentary/list',
    method: 'get',
    params: query
  })
}

// 查询纪录片详细
export function getDocumentary(id) {
  return request({
    url: '/type/documentary/' + id,
    method: 'get'
  })
}

// 新增纪录片
export function addDocumentary(data) {
  return request({
    url: '/type/documentary',
    method: 'post',
    data: data
  })
}

// 修改纪录片
export function updateDocumentary(data) {
  return request({
    url: '/type/documentary',
    method: 'put',
    data: data
  })
}

// 删除纪录片
export function delDocumentary(id) {
  return request({
    url: '/type/documentary/' + id,
    method: 'delete'
  })
}
